package testDemo1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-18
 * Time: 19:34
 */
public class Bird extends Animal implements IFly,IRun{

    public Bird(String name) {
        super(name);
    }

    @Override
    public void eat() {
        System.out.println(this.name+" 正在吃鸟食....");
    }

    @Override
    public void fly() {
        System.out.println(this.name+" 正在扑打翅膀飞起来...");
    }

    @Override
    public void run() {
        System.out.println(this.name+ " 正在用两个腿蹦跶...");
    }
}
